import { createStore } from "vuex";
import settings from '@/store/modules/settings'
import app from '@/store/modules/app'
import permission from '@/store/modules/permission'
import user from '@/store/modules/user'
import tagsView from "./modules/tagsView";
import getters from "./getters"

const store = createStore({
    state: Object.assign({}, settings.state, app.state, permission.state, user.state, tagsView.state),
    getters: Object.assign({}, permission.getters, getters),
    mutations: Object.assign({}, settings.mutations, app.mutations, permission.mutations, user.mutations, tagsView.mutations),
    actions: Object.assign({}, settings.actions, app.actions, permission.actions, user.actions, tagsView.actions)
});

export default store;